package com.jakewharton.rxbinding4.component;

import com.google.auto.value.AutoValue;

import io.reactivex.rxjava3.annotations.NonNull;

/**
 * Text editor action event
 */
@AutoValue
public abstract class TextEditorActionEvent {
    /**
     * Create text editor action event
     *
     * @param action action
     * @return the text editor action event
     */
    @NonNull
    public static TextEditorActionEvent create(int action) {
        return new AutoValue_TextEditorActionEvent(action);
    }

    /**
     * Text editor action event
     */
    TextEditorActionEvent() {}

    /**
     * The view from which this event occurred.
     *
     * @return the int
     */
    public abstract int actionId();
}
